package com.yq.design.decorator;

/**
 * @ClassName EggCakeImpl
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/11/1 10:20
 * @Version 1.0
 */
public class EggCakeImpl extends  CakeDecorator{
    public EggCakeImpl(Cake cake) {
        super(cake);
    }


    @Override
    public String nameDetails(){
        return "鸡蛋"+cake.nameDetails();
    }

}
